<include file="nav:header"/>
<div class="container-fluid">
    <div class="row">
        <include file="Left:left-Common"/>
        <!-- right -->
        <div class="col-md-10 right">
            <div class="page-header" style="margin-right: 15px">
                <h3>{$page_title}</h3>
            </div>
            <div class="col-md-6">
                <div class="btn-group " role="group" aria-label="Large button group">
                    <a href="{:U('Menu/index')}" type="button" class="btn btn-default">بارلىق سەھىپە</a>
                    <a href="{:U('Menu/index')}" type="button" class="btn btn-default"> قايتىش</a>
                </div>
                <br><br>
                <!--表单-->
                <form class="classify" action="{:U('Menu/savehend')}" method="post">
                    <div class="form-group layui-form">
                        <select class="form-control" name="catid">
                            <option value="">چوڭ تۈر</option>
                            <foreach name="linkcate" item="c">
                                <option <if condition="$c['id'] eq $classifys['catid']" >selected</if> value="{$c['id']}"><if condition="$c['pid'] neq 0">{$c.lavel|_repeat} ┘─</if>{$c['name']}</option>
                            </foreach>
                        </select>
                    </div>
                    <br>
                    <div class="form-group layui-form">
                        <select class="form-control" name="pid">
                            <option value=""> ئانا تىزىملىك</option>
                            <foreach name="classify" item="c">
                                <option value="{$c['id']}" <if condition="$c['id'] eq $classifys['pid']" >selected</if>>
                                <if condition="$c['pid'] neq 0">{$c['lavel']|_repeat} ┘─</if>{$c['name']}
                                </option>
                            </foreach>
                        </select>
                    </div>
                    <script>
                        //Demo
                        layui.use('form', function(){
                            var form = layui.form;
                            //监听提交
                            form.on('submit(formDemo)', function(data){
                                layer.msg(JSON.stringify(data.field));
                                return false;
                            });
                        });
                    </script>
                    <br>
                    <input type="hidden" name="id" value="{$classifys['id']}">
                    <div class="form-group">
                        <input name="name" type="text" class="form-control" id="exampleInputEmail1" value="{$classifys['name']}">
                    </div>
                    <br>
                    <div class="form-group">
                        <input style="direction: ltr;text-align: right" name="url" type="text" class="form-control"  value="{$classifys['url']}" placeholder="  ئۇلانما ئادېرىسى:     http:// نى قوشۇپ يېزىڭ " >
                    </div>
                    <br>
                    <div class="form-group">
                        <input style="direction: ltr;text-align: right" name="icon"  type="text" class="form-control"  value="{$classifys['icon']}" placeholder="ئايكون " >
                    </div>
                    <br>
                    <div class="form-group">
                        <input name="sort" type="number" class="form-control" id="exampleInputPassword1" value="{$classifys['sort']}">
                    </div>
                    <br>
                    <div class="btn-group checkbox">
                        <label class="btn btn-success btn-xs <if condition="$classifys['status']">active</if> ">
                            <input type="radio" name="status"  value="1" <if condition="$classifys['status']">checked</if>> ئوچۇق
                        </label>
                        <label class="btn btn-danger btn-xs <if condition="!$classifys['status']">active</if> ">
                            <input  type="radio" name="status"  value="0" <if condition="!$classifys['status']">checked</if>> تاقاق
                        </label>
                    </div>
                    <br><br>
                    <button style="width: 100px" type="submit" class="btn btn-primary ">ساقلاش</button>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="nav:footer"/>